﻿                          
   using System;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Abp.Application.Services.Dto;
using Abp.Extensions;
using KDS.Mes.Mes.TestPower2s;

namespace KDS.Mes.Mes.TestPower2s.EntityMapper.TestPower2s
{

	/// <summary>
    /// 2线电检数据表的数据配置文件
    /// </summary>
    public class TestPower2Cfg : EntityTypeConfiguration<TestPower2>
    {
		/// <summary>
        ///  构造方法[默认链接字符串< see cref = "MesDbContext" /> ]
        /// </summary>
		public TestPower2Cfg ()
		{
		            ToTable("TestPower2", MesConsts.SchemaName.Basic);
 
      //todo: 需要将以下文件注入到MesDbContext中

  //		public IDbSet<TestPower2> TestPower2s { get; set; }
   //		 modelBuilder.Configurations.Add(new TestPower2Cfg());




		    // 线体
			Property(a => a.LINE).HasMaxLength(20);
		    // 工位
			Property(a => a.STATION_NO).HasMaxLength(20);
		    // 座椅条码
			Property(a => a.SEAT_ID).HasMaxLength(20);
		    // RESULT
			Property(a => a.RESULT).HasMaxLength(20);
		    // WARN_OFF_VAL
			Property(a => a.WARN_OFF_VAL).HasMaxLength(20);
		    // WARN_OFF_JUG
			Property(a => a.WARN_OFF_JUG).HasMaxLength(20);
		    // WARN_ON_VAL
			Property(a => a.WARN_ON_VAL).HasMaxLength(20);
		    // WARN_ON_JUG
			Property(a => a.WARN_ON_JUG).HasMaxLength(20);
		    // SAB_VAL
			Property(a => a.SAB_VAL).HasMaxLength(20);
		    // SAB_JUG
			Property(a => a.SAB_JUG).HasMaxLength(20);
		    // SBR_OFF_VAL
			Property(a => a.SBR_OFF_VAL).HasMaxLength(20);
		    // SBR_OFF_JUG
			Property(a => a.SBR_OFF_JUG).HasMaxLength(20);
		    // SBR_ON_VAL
			Property(a => a.SBR_ON_VAL).HasMaxLength(20);
		    // SBR_ON_JUG
			Property(a => a.SBR_ON_JUG).HasMaxLength(20);
		}
    }
}